package com.company.common.util;

/**
 * CDN服务器接口签名帮助类
 * Description: cdndownLoad
 * Created by hekai on 2021/3/30 15:22
 */
public class SignUtil {

    private static final String KEY = "HQCDN";

    public static String signBysSchoolId(String schoolId){
        return BCryptUtil.hashpw(schoolId+KEY);
    }

    public static boolean checkSign(String schoolId,String sign){
        return BCryptUtil.checkpw(schoolId+KEY,sign);
    }
}
